package com.lpit.controller;


import com.lpit.pojo.UserChannel;
import com.lpit.service.AuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Controller

//推荐作者
public class AuthorController {

    @Autowired
    AuthorService authorService;

//    推荐作者
    @GetMapping("/authors")
    public String getRecommendedAuthors(UserChannel userChannel) {
        authorService.recommend(userChannel);
        return null;
    }
}

